
package DomainModel;

/**
 *
 * @author PRATAP, Mershack, Patrick
 */
public class Schedule {

    private int scheduleId;
    private Semester semester;
    private Weekday weekDay;
    private int startTime;
    private int endTime;
    private String roomNbr;

    public Schedule(int pScheduleId, Semester pSemester, Weekday pWeekDay, int pStartTime, int pEndTime, String pRoomNbr) {
        this.scheduleId = pScheduleId;
        this.semester = pSemester;
        this.weekDay = pWeekDay;
        this.startTime = pStartTime;
        this.endTime = pEndTime;
        this.roomNbr = pRoomNbr;
    }

    public int getScheduleId() {
        return scheduleId;
    }

    public Semester getSemester() {
        return semester;
    }

    public Weekday getWeekDay() {
        return weekDay;
    }

    public int getStartTime() {
        return startTime;
    }

    public int getEndTime() {
        return endTime;
    }

    public String getRoomNbr() {
        return roomNbr;
    }

    public void setScheduleId(int scheduleId) {
        this.scheduleId = scheduleId;
    }

    public void setSemester(Semester semester) {
        this.semester = semester;
    }

    public void setWeekDay(int weekDayId) {
        this.weekDay = Weekday.getDayById(weekDayId);
    }

    public void setStartTime(int startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(int endTime) {
        this.endTime = endTime;
    }

    public void setRoomNbr(String roomNbr) {
        this.roomNbr = roomNbr;
    }
}
